<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>格林时间</title>
</head>
<script type="text/javascript">
    window.onload=function  () {
	var date = new Date();
	var timestamp=new Date().getTime();
	var new_time =new Date(2016,5,14);
	var have_timestamp=new_time-timestamp;
	var days =Math.floor(have_timestamp/(24*60*60*1000));
	var days_stamp =24*60*60*1000*days;
	var h_m_s_stamp =have_timestamp-(days_stamp);
	var hours =Math.floor(h_m_s_stamp/(60*60*1000));
	var hours_stamp =60*60*1000*hours;
	var m_s_stamp= have_timestamp-days_stamp-hours_stamp;		
	var minites = Math.floor(m_s_stamp/(60*1000));
	var minites_stamp=minites*60*1000;
	var second =Math.floor((have_timestamp-days_stamp-hours_stamp-minites_stamp)/1000);
	var res = "距离毕业仅剩"+days+"天"+hours+"小时"+minites+"分钟"+second+"秒";
	alert(res);
	}
	 
</script>
<body>


</body>
</html>